//
//  SWSquareViewCell.swift
//  新浪微博
//
//  Created by Mac on 17/1/3.
//  Copyright © 2017年 itcast. All rights reserved.
//

import UIKit

class SWSquareViewCell: UICollectionViewCell {

    @IBOutlet weak var imgView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    
    var cellDTO: SWComposeDTO? {
        didSet{
            imgView.image = UIImage(named: (cellDTO?.imageName)!)
            titleLabel.text = cellDTO?.title
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
}
